package com.biqee.util;

import java.io.InputStream;
import java.io.OutputStream;
import java.io.Reader;

public class IOCloseUtil {
	public static void safeClose(Reader reader) {
		if(reader != null) {
			try {
				reader.close();
			} catch (Exception e) {
				// ignore
			}
		}
	}
	
	public static void safeClose(InputStream in) {
		if(in != null) {
			try {
				in.close();
			} catch (Exception e) {
				// ignore
			}
		}
	}
	
	
	public static void safeClose(OutputStream out) {
		if(out != null) {
			try {
				out.close();
			} catch (Exception e) {
				// ignore
			}
		}
	}
	
	
}
